import React, {Component} from 'react';
import {View, StyleSheet, Text, TouchableOpacity} from  'react-native';
export default class HomeDetail extends Component {
    constructor(props) {
        super(props);
        this.state = {};
        this._onPressButton = this._onPressButton.bind(this)
    }

    _onPressButton() {
        this.props.navigator.pop();
    }

    render() {
        return (
            <View style={styles.container}>
                <TouchableOpacity onPress={this._onPressButton}>
                    <Text style={styles.textStyle}>测试下一页</Text>
                </TouchableOpacity>
            </View>
        )
    }
}
const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
        backgroundColor: '#F5FCFF',
    },
    textStyle: {
        fontSize: 20
    }
});
